﻿
@{
    ViewBag.Title = "工单配置";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}
@model IOA.MES.DataAccess.VModel.VWorkOrder
@section Contents{
    <style>
        .tabFrame {
            width: 100%;
            height: calc(100vh - 185px);
            border-width: 0;
        }
    </style>
}

<div id="page"></div>

<script type="text/template" id="tplPage">
    <div style="padding: 20px; background-color: #F2F2F2;">
        <div class="layui-card">
            <div class="layui-form layui-card-header layuiadmin-card-header-auto">
                <div class="layui-row">
                    <div class="layui-col-xs3 layui-inline">
                        <label class="layui-form-label">{{lang.Field.OrderNo}}：</label>
                        <div class="layui-input-inline">
                            @Model.OrderNo
                        </div>
                    </div>
                    <div class="layui-col-xs3 layui-inline">
                        <label class="layui-form-label">{{lang.Field.WorkorderNo}}：</label>
                        <div class="layui-input-inline">
                            @Model.WorkOrderNo
                        </div>
                    </div>
                    <div class="layui-col-xs3 layui-inline">
                        <label class="layui-form-label">{{lang.Field.CustomerCode}}：</label>
                        <div class="layui-input-inline">
                            @Model.WorkshopName
                        </div>
                    </div>
                    <div class="layui-col-xs3 layui-inline">
                        <label class="layui-form-label">{{lang.Field.CustomerName}}：</label>
                        <div class="layui-input-inline">
                            @Model.Count
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-card">
            <div class="layui-card-body">
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                    <ul class="layui-tab-title">
                        <li class="layui-this">{{lang.Field.BomSettings}}</li>
                        <li>{{lang.Field.StationConfig}}</li>
                        <li>{{lang.Field.StandardTabletBind}}</li>
                        <li>{{lang.Field.ColorConfig}}</li>
                        <li>{{lang.Field.IvUploadConfig}}</li>
                        <li>{{lang.Field.Label}}</li>
                        <li>{{lang.Field.QTimeConfig}}</li>
                        <li>{{lang.Field.Q1PackCondition}}</li>
                        <li>{{lang.Field.UnQ1PackCondition}}</li>
                        <li>{{lang.Field.Q1CabinetCondition}}</li>
                        <li>{{lang.Field.UnQ1CabinetCondition}}</li>
                        <li>{{lang.Field.FootPprotectionConfig}}</li>
                        <li>{{lang.Field.OrderDemand}}</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                            <!--BOM配置-->
                            <iframe class="tabFrame" src="/ParaSetting/ProductSiteBomMgr?workOrderNo=@Model.WorkOrderNo"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--组件过站-->
                            <iframe class="tabFrame" src="/ParaSetting/CompCrossSiteMgr?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--标片绑定-->
                            <iframe class="tabFrame" src="/WorkOrder/StandardPieceBind?workOrderNo=@Model.WorkOrderNo"></iframe>
                        </div>
                        <div class="layui-tab-item ">
                            <!--颜色配置-->
                            <iframe class="tabFrame" src="/ParaSetting/ColorMatch?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo"></iframe>
                        </div>
                        <div class="layui-tab-item ">
                            <!--IV上传-->
                            <iframe class="tabFrame" src="/ParaSetting/IVUploadMgr?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--标签-->
                            <iframe class="tabFrame" src="/ParaSetting/LableMgr?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo"></iframe>
                        </div>
                        <div class="layui-tab-item ">
                            <!--QTime-->
                            <iframe class="tabFrame" src="/ParaSetting/QTimeMgr?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--Q1包装条件-->
                            <iframe class="tabFrame" src="/ParaSetting/PackConditionMgr?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo&qLevelCondition=1"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--非Q1包装条件-->
                            <iframe class="tabFrame" src="/ParaSetting/PackConditionMgr?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo&qLevelCondition=0"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--Q1拼柜条件-->
                            <iframe class="tabFrame" src="/ParaSetting/CabinetConditionMgr?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo&qLevelCondition=1"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--非Q1拼柜条件-->
                            <iframe class="tabFrame" src="/ParaSetting/CabinetConditionMgr?orderNo=@Model.OrderNo&workOrderNo=@Model.WorkOrderNo&qLevelCondition=0"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--包护脚配置-->
                            <iframe class="tabFrame" src="/ParaSetting/FootProtectMgr?OrderNo=@Model.OrderNo"></iframe>
                        </div>
                        <div class="layui-tab-item">
                            <!--订单需求-->
                            <iframe class="tabFrame" src="/ParaSetting/OrderNeedMgr?OrderNo=@Model.OrderNo"></iframe>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</script>

@section Scripts{
    <script>
        var vm = new Vue({
            el: "#page",
            template: "#tplPage",
            data: {
                lang: JSON.parse(lang).package
            }
        });

        setTimeout(function () {
            layui.use(['element'], function () {
            });
        }, 50);
    </script>
}
